home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
class
/
linkseq.d
< prev
next >
Wrap
Text File
|
1996-02-04
|
665b
|
56 lines
/*
*
* Copyright (c) 1993-1996 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37067
*
* ALL RIGHTS RESERVED.
*
*
*
*/
defclass LinkSequence : Sequence {
iNext;
};
cmeth gNewWithObj, <vNew> (link)
{
object ls;
ivType *iv;
ChkArgNul(link, 2);
ls = gNew(super);
iv = ivPtr(ls);
iNext = link;
return ls;
}
imeth gNext()
{
object n;
if (n = iNext) {
iNext = gNext(iNext);
return n;
}
return gDispose(self);
}
/*
*
* Copyright (c) 1993-1996 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37067
*
* ALL RIGHTS RESERVED.
*
*
*
*/